package com.hedl.classroom.service;

import com.hedl.classroom.dto.AddOrderDto;
import com.hedl.classroom.dto.PayRecordDto;
import com.hedl.classroom.model.po.MqMessage;

/**
 * @author Big Watermelon
 * @description 订单相关的service
 * @date 2023/12/18/11:09
 */
public interface OrderService {

    /**
     * 创建商品订单
     * @param userId 用户id
     * @param addOrderDto 订单信息
     * @return 支付记录包括二维码
     */
    PayRecordDto createOrder(String userId, AddOrderDto addOrderDto);

    /**
     * 发送通知结果
     * @param mqMessage
     */
    void notifyPayResult(MqMessage mqMessage);
}